-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix project artifact sharing. #1442
Conversation
Embed the MR project into dependent projects by depending on the project and embedding its contents into the jar using the configuration instead of the project's jar task.
canBeResolved = true | ||
} | ||
implementation { | ||
extendsFrom project.configurations.embedded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should change the canBeResolved
for the implementation configuration. See https://discuss.gradle.org/t/what-is-a-configuration-which-cant-be-directly-resolved/30721/2
In short, you should never change the canBeConsumed and canBeResolved flags of configuration you do not create.
also, it's not clear you are changing it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation shouldn't be affected by that at all. Only the embedded
configuration is getting canBeResolved
set on it. The implementation
configuration just depends on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok , i mis-understood how extendsFrom
behaves
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Embed the MR project into dependent projects by depending on the project and embedding its contents into the jar using the configuration instead of the project's jar task.
Relates #1423 |
Use a configuration to embed the contents of the
mr
project into dependentprojects' artifacts instead of using the
mr
project's jar task directly.Consolidate all projects' dependency blocks into one block for each project.